
    <title>111</title>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <% include import.ejs %>

    <style>
    </style>

    <div class="col-sm-12" style="margin-top: 200px; ">
        <div class="col-sm-4"></div>
        <input type="button" id="btn1" value="btn1" class="col-sm-3 btn">
    </div>
    <div class="col-sm-12">
        <div>用户名：<span id="users"></span></div>
        <div>密码：<span id="password"></span></div>
    </div>

    <script>
        $(function(){

            $.get('ajax1',function(data){
                $('#users').text(data.users);
                $('#password').text(data.password);
            },'jsonp');

            $('#btn1').click(function(){
                $.ajax({
                    type: "get",
                    dataType: 'jsonp',
                    url: 'ajax2',
                    async: true,
                    success: function(data) {
                        $('#users').text(data.users);
                        $('#password').text(data.password);
                    }
                });
            });
        });
    </script>